import { AxiosResponse } from "axios"
import service from "/@/utils/request"

/**缓存服务 */
/**
 * 删除所有缓存
 */
export function removeAllCache(): Promise<AxiosResponse<any>> {
    let url = "/rest/org/BomfCacheService/removeAllCache"
    return service.get(url)
}

/**
 * 删除数据字典缓存
 */
export function removeCacheCodeList(): Promise<AxiosResponse<any>> {
    let url = "/rest/org/BomfCacheService/removeCacheCodeList"
    return service.get(url)
}

/**
 * 删除树缓存
 */
export function removeCacheTreeList(): Promise<AxiosResponse<any>> {
    let url = "/rest/org/BomfCacheService/removeCacheTreeList"
    return service.get(url)
}

/**
 * 删除组织机构缓存
 */
export function removeOrgCache(): Promise<AxiosResponse<any>> {
    let url = "/rest/org/BomfCacheService/removeOrgCache"
    return service.get(url)
}


/**
 * 删除bean缓存
 */
export function removeBeanCache(): Promise<AxiosResponse<any>> {
    let url = "/rest/org/BomfCacheService/removeBeanCache"
    return service.get(url)
}